<?php

if(!defined('WP_UNINSTALL_PLUGIN')) {
    exit();
}

zendvn_wp_unistall();

/**
 * The function delete file and database.
 */
function zendvn_wp_unistall() {
    global $wpdb;
    
    delete_option('zendvn_wp_version');
    
    $table_name = $wpdb->prefix . 'zendvn_wp_test';
    $sql    = 'DROP TABLE IF EXISTS ' . $table_name;
    $wpdb->query($sql);
    
}